1 using UnityEngine;
2 using
System.Collections;
3
4 public
class FloorScript : MonoBehaviour
5 {
6     
public GameManager gameManager;
7
8     
void OnCollisionEnter2D(Collision2D col)
9     {
10         
if (col.gameObject.tag == "Ball")
11             gameManager.DecreaseLives();
12     }
13 }



Trò chơi xếp gạch đơn giản 7.082 lượt xem

Gõ tìm kiếm nhanh...